package service;

import java.util.Date;
import java.util.List;

import model.EstpInfo;
import model.ProjectInfo;
import model.User;

public interface ProjectInfoManager {
	int addProjectInfoManager(String proInName, String proInProName, int proInledge,
			int proInMain,double proInRegMoney,double proInNeedMoney,double proInTeamMoney ,
			Date proInTime,int proInState) throws Exception;
	int addOrUpdateProjectInfoManager(String proInName, String proInProName, int proInledge,
			int proInMain,double proInRegMoney,double proInNeedMoney,double proInTeamMoney ,
			Date proInTime,int proInState) throws Exception;
	ProjectInfo getProject(int id) throws Exception; 
	List<ProjectInfo> getProjectByUser(User user) throws Exception;
	List<ProjectInfo> getProjectByState(int state) throws Exception;
	void updateState(ProjectInfo projectInfo) throws Exception;
}
